﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace BlogDemo.Api.Models
{
    public class LoginInputDto
    {
        [Required]
        [JsonProperty("username")]
        public string Username { get; set; }


        [Required]
        [JsonProperty("password")]
        public string Password { get; set; }

        /// <summary>
        /// 登录后授权的 Token
        /// </summary>
        public string Token { get; set; }
    }


    public class UserDto
    {
        public Guid Id { get; set; }
        public string UserName { get; set; }
        public Guid Role { get; set; }
        public string Email { get; set; }
        public string Phone { get; set; }
    }
    
}
